Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

communicator/ssh: sort agent after static keyfile #2615

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

phinze
Copy link
Contributor

@phinze phinze commented Jul 2, 2015

In the SSH client configuration, we had SSH Agent authentication listed
before the static PrivateKey loaded from the key_file setting.
Switching the default of the agent setting exposed the fact that the
SSH agent overrides the key_file during the handshake. By listing the
key_file first, we catch the provided key before any query goes out to
the agent.

Adds a key-based authentication SSH test to cover this new behavior. It
fails without the reordering on any machine with an SSH agent running.

Fixes #2614

In the SSH client configuration, we had SSH Agent authentication listed
before the static PrivateKey loaded from the `key_file` setting.
Switching the default of the `agent` setting exposed the fact that the
SSH agent overrides the `key_file` during the handshake. By listing the
`key_file` first, we catch the provided key before any query goes out to
the agent.

Adds a key-based authentication SSH test to cover this new behavior. It
fails without the reordering on any machine with an SSH agent running.

Fixes #2614
@mitchellh
Copy link
Contributor

Nice test, LGTM

phinze added a commit that referenced this pull request Jul 2, 2015
communicator/ssh: sort agent after static keyfile
@phinze phinze merged commit c8a0d3f into master Jul 2, 2015
@phinze phinze deleted the b-ssh-agent-masks-key-file branch July 2, 2015 21:09
@sathiyas
Copy link
Contributor

sathiyas commented Jul 2, 2015

Thanks @phinze do you know when the build will be released?

@phinze
Copy link
Contributor Author

phinze commented Jul 2, 2015

@sathiyas not sure yet, but I'm guessing we'll cut an 0.6.1 with a batch of fixes sometime within the next week.

@ghost
Copy link

ghost commented May 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH connections always look to agent for authentication even when key_file is provided
3 participants